﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>列表</title>
  <link href="../Scripts/sui/css/sui.min.css" rel="stylesheet" />
  <style type="text/css">
      .red{color:red;}
      .ztree li{overflow:hidden;}
  </style>
</head>
<body ms-controller="listview">
    <div class="sui-container" style="width:98%;padding-top:10px;">

        <div ms-include-src="../LIST/{{FunCode}}.html?rem={{rem}}" data-include-rendered='render' style="padding-bottom:20px;">

        </div>

    </div>
    <script src="../Scripts/jquery.min.js"></script>
    <script src="../Scripts/sui/js/sui.min.js"></script>
  <script src="../Scripts/echarts.min.js?v=3"></script>
    <script src="../Scripts/macarons.js"></script>
  <script src="../Scripts/layer/layer.js"></script>
  <script src="../Scripts/avalon.js"></script>
  <script src="../Scripts/ComFunJS.js?201707310"></script>
  <link href="/admin/Scripts/zTree/css/zTreeStyle/zTreeStyle.css" rel="stylesheet" />
  <script src="/admin/Scripts/zTree/js/jquery.ztree.all.js"></script>
  <script type="text/javascript">
      var model = avalon.define({
          $id: "listview",
          FunCode: ComFunJS.getQueryString("FunCode"),
          rem: Math.random(),
          render: function () {

          },
          ADD: function (el) {
              if (el) {
                  top.ComFunJS.winShowForm("/admin/BASE/BASE_ADD.html?FunCode=" + model.FunCode + "&ID=" + el.ID, "修改");
              } else {
                  top.ComFunJS.winShowForm("/admin/BASE/BASE_ADD.html?FunCode=" + model.FunCode, "添加");
              }
          },
          Province: "",
          City: "",
          County: "",
          SearchKey: "",
          cityData1: [],
          cityData2: [],
          cityData3: [],
          GetProvince: function () {

              ComFunJS.getJSON("BASE_GETCITY2", { "lvl": "1" }, function (r) {
                  model.cityData1 = r.result;
              })
          },
          GetCity: function (c1) {

              ComFunJS.getJSON("BASE_GETCITY2", { "lvl": "2", "P1": model.Province }, function (r) {
                  model.cityData2 = r.result;
              })
          },
          GetCounty: function (c1, c2) {
              ComFunJS.getJSON("BASE_GETCITY2", { "lvl": "3", P1: model.Province, P2: model.City }, function (r) {
                  model.cityData3 = r.result;
              })

          }
      })
      avalon.ready(function () {
          //model.GetProvince();
      })


      
  </script>
</body>
</html>
